#pragma once

#ifdef  __cplusplus
extern "C"
{
#endif //  __cplusplus

#include "quicklz.h"

#if (defined WIN32 || defined _WIN32 || defined WINCE)
# define CP_EXPORTS __declspec(dllexport)
#else
# define CP_EXPORTS
#endif

    typedef void(*decompress_callback)(int block_len);

    CP_EXPORTS void i_qlz_compress(char* src_data, char* dst_data, int *pressed_size);

    CP_EXPORTS void i_qlz_decompress(char* src_data, int src_len, char* fifo, decompress_callback func);

#ifdef  __cplusplus
}
#endif //  __cplusplus
